package com.tanhua.dubbo.api;

import com.tanhua.model.mongo.UserLike;
import com.tanhua.model.vo.PageResult;

import java.util.Map;

public interface UserLikeApi {

    //保存或者更新
    Boolean saveOrUpdate(Long userId, Long likeUserId, boolean isLike);
    Map count(Long userId);

    void fansLike(Long uid, Long userId);

    void deleteLike(Long uid, Long userId);

    PageResult queryEachLikeList(Integer page, Integer pagesize, Long userId);

    PageResult queryLikeList(Integer page, Integer pagesize, Long userId);

    PageResult queryfansList(Integer page, Integer pagesize, Long userId);

    UserLike isSave(Long userId, Long uid, boolean b);

    void save(UserLike user);

    void del(Long userId, Long uid);


    UserLike query(Long likeUserId, Long userId);
}
